<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * WithdrawalsRecord
 *
 * @ORM\Table(name="withdrawals_record", options={"comment":"提现记录表"})
 * @ORM\Entity()
 */
class WithdrawalsRecord
{
    public static $status_array = array(
        1 => '提现中',
        2 => '提现失败',
        3 => '提现成功'
    );

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\User", inversedBy="id")
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
     */
    private $user;

    /**
     * @var integer
     *
     * @ORM\Column(name="status", type="smallint", options={"comment":"状态  1 提现中  2 提现失败 3 提现成功"})
     */
    private $status;

    /**
     * @var string
     *
     * @ORM\Column(name="money", type="decimal", precision=10, scale=2,  nullable=true, options={"comment"="金额"})
     */
    private $money;

    /**
     * @var string
     *
     * @ORM\Column(name="wx_number", type="string", length=45, nullable=true, options={"comment"="wx号"})
     */
    private $wx_number;
    
    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;

}
